package com.museum.controller.APi;

import com.alibaba.fastjson.JSONObject;
import com.museum.base.BaseResponse;
import com.museum.entity.DO.DepLog;
import com.museum.entity.DTO.DepLogCol;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

/*
* @description 库房日志
* @author ahm
* @since 2021/3/13
* */
@Api(tags = "库房日志管理")
public interface DepLogAPI {
    /**
     * @param
     * @Desciption 提交日志
     * @return
     */
    @ApiOperation(value = "提交日志")
    @PostMapping("/addDepLog")
    BaseResponse<JSONObject> addDepLog(@RequestBody DepLog depLog, HttpServletRequest request);
    /**
     * @param
     * @Desciption 条件查询日志
     * @return
     */
    @ApiOperation(value = "条件查询日志")
    @PostMapping("/getAllDepLogByPage")
    BaseResponse<JSONObject> getAllDepLogByPage(long current, long limit, @RequestBody DepLogCol depLog);
    /**
     * @param
     * @Desciption 删除日志
     * @return
     */
    @ApiOperation(value = "删除日志")
    @DeleteMapping("/deleteLogById/{id}")
    BaseResponse<JSONObject> deleteLogById(@PathVariable("id") Integer id);
}
